// 时间线页面组件样式
@use '../variables' as *;
.timeline-page {
    min-height: 100vh;
    background-color: #f8fafc;
}

// 主要内容区域样式
.main-content {
    padding-top: 64px;
    min-height: calc(100vh - 64px); // 减去导航栏高度，避免出现空白
    background: url('/src/assets/pic/TimeLine_bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

// 示例数据提示样式
.sample-data-notice {
    margin-bottom: 30px;
    
    .el-alert {
        border-radius: $radius-lg;
        border: 1px solid rgba(102, 126, 234, 0.2);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
        backdrop-filter: blur(10px);
        
        .el-alert__title {
            color: #667eea;
            font-weight: $font-semibold;
        }
        
        .el-alert__description {
            color: rgba(44, 62, 80, 0.8);
            font-size: 13px;
        }
        
        .el-alert__icon {
            color: #667eea;
        }
    }
}

// 页面标题样式
.page-header {
    text-align: center;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: $radius-xl;
    padding: 32px;
    box-shadow: $shadow-md;
    border: 1px solid rgba(229, 231, 235, 0.3);
    transition: all $transition-normal;
    &:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-2px);
        box-shadow: $shadow-lg;
    }
    .page-title {
        font-size: 3rem;
        font-weight: $font-bold;
        color: $text-primary;
        margin: 0 0 16px 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .page-subtitle {
        font-size: 1.125rem;
        color: $text-secondary;
        margin: 0;
        font-weight: $font-normal;
    }
}

// 时间线容器样式
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

// 时间线分组样式
.timeline-group {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: $radius-xl;
    padding: 32px;
    box-shadow: $shadow-md;
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all $transition-normal;
    &:hover {
        transform: translateY(-2px);
        box-shadow: $shadow-lg;
        border-color: rgba($accent-color, 0.2);
        background: linear-gradient(135deg, rgba(248, 249, 250, 0.7) 0%, rgba(255, 255, 255, 0.7) 100%);
    }
}

// 月份标题样式
.month-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba($accent-color, 0.1);
    .month-title {
        font-size: 1.75rem;
        font-weight: $font-bold;
        color: $text-primary;
        margin: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

// 文章列表样式
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: $radius-lg;
    padding: 16px;
}

// 文章项样式
.post-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: $radius-lg;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(229, 231, 235, 0.4);
    transition: all $transition-normal;
    cursor: pointer;
    &:hover {
        transform: translateX(8px);
        box-shadow: $shadow-md;
        border-color: rgba($accent-color, 0.3);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    }
}

// 文章圆点样式
.post-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
    margin-top: 6px;
    position: relative;
    &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: white;
    }
}

// 文章内容样式
.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    .post-date {
        font-size: 0.875rem;
        color: $text-muted;
        font-weight: $font-medium;
    }
    .post-title {
        font-size: 1.125rem;
        font-weight: $font-semibold;
        color: $text-primary;
        line-height: 1.4;
        transition: color $transition-normal;
        &:hover {
            color: $accent-color;
        }
    }
}

// 分页组件样式
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0;
     :deep(.el-pagination) {
        .el-pager li {
            border-radius: $radius-md;
            transition: all $transition-normal;
            background-color: rgba(255, 255, 255, 0.8) !important;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(229, 231, 235, 0.3);
            &:hover {
                background-color: rgba($accent-color, 0.1) !important;
                color: $accent-color;
            }
            &.is-active {
                background-color: rgba($accent-color, 0.9) !important;
                color: white;
            }
        }
        .btn-prev,
        .btn-next {
            border-radius: $radius-md;
            transition: all $transition-normal;
            background-color: rgba(255, 255, 255, 0.8) !important;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(229, 231, 235, 0.3);
            &:hover {
                background-color: rgba($accent-color, 0.1) !important;
                color: $accent-color;
            }
        }
    }
}

// 响应式设计
@media (max-width: 1024px) {
    .content-wrapper {
        padding: 30px 20px;
    }
    .page-header {
        margin-bottom: 40px;
        .page-title {
            font-size: 2.5rem;
        }
    }
    .timeline-group {
        padding: 24px;
    }
    .month-header .month-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px 15px;
    }
    .page-header {
        margin-bottom: 30px;
        .page-title {
            font-size: 2rem;
        }
        .page-subtitle {
            font-size: 1rem;
        }
    }
    .timeline-group {
        padding: 20px;
    }
    .month-header {
        margin-bottom: 20px;
        .month-title {
            font-size: 1.25rem;
        }
    }
    .post-item {
        padding: 12px;
        gap: 12px;
        &:hover {
            transform: translateX(4px);
        }
    }
    .post-bullet {
        width: 10px;
        height: 10px;
        margin-top: 4px;
        &::before {
            width: 4px;
            height: 4px;
        }
    }
    .post-content {
        .post-date {
            font-size: 0.8rem;
        }
        .post-title {
            font-size: 1rem;
        }
    }
}

@media (max-width: 480px) {
    .page-header {
        .page-title {
            font-size: 1.75rem;
        }
    }
    .timeline-group {
        padding: 16px;
    }
    .post-item {
        padding: 10px;
        gap: 10px;
    }
    .post-content {
        .post-title {
            font-size: 0.9rem;
        }
    }
}